package com.fesine.ch02.synchronizedBlockLockAll.test3;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/5 16:30
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/5 16:30
 */
public class MyObject {
    public void speedPrintString() {
        synchronized (this) {
            System.out.println("speedPrintString __getLock time=" + System.currentTimeMillis()
                    + " run ThreadName=" + Thread.currentThread().getName());
            System.out.println("-----------------");
            System.out.println("speedPrintString __releaseLock time=" + System.currentTimeMillis()
                    + " run ThreadName=" + Thread.currentThread().getName());
        }

    }
}
